package com.codoon.unova.bean;

import java.io.Serializable;

/**
 * 
 * @author scott
 * 
 *         Function:用户信息
 */
public class UserBean implements Serializable {
	private float weight; // 体重
	private int height; // 身高
	private float stridelength;// 走路时，步长
	private float runstridelength;// 跑步时， 步长

	public String format(int value) {
		if (value < 10) {
			return "0" + value;
		} else {
			return value + "";
		}
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public float getStridelength() {
		return stridelength;
	}

	public void setStridelength(float stridelength) {
		this.stridelength = stridelength;
	}

	public float getRunstridelength() {
		return runstridelength;
	}

	public void setRunstridelength(float runstridelength) {
		this.runstridelength = runstridelength;
	}

	@Override
	public String toString() {
		return  "[Weight=" + weight + ", height=" + height + ", stridelength=" + stridelength + ", runstridelength=" + runstridelength + "]";
	}

	public String beanToString() {
		return runstridelength + "|" + height + "|" + stridelength + "|" + weight;
	}

}
